<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
    <th:block th:include="include_mobile :: header('辖区内信息')" />

</head>
<body class="grayw-bg full-height-layout" >

<div class="wrapper1">
    <div th:replace="include_mobile :: top" ></div>
    <div class="container-wrapper">

            <h4>基本信息</h4>
            <div class="row" th:object="${userInfo}">
                <div class="card-view"><div class="col-sm-12">
                    住址：
                    <span th:text="*{address}"></span>
                </div></div>
                <div class="card-view"><div class="col-sm-12">户主姓名：
                    <span th:text="*{masterName}"></span>
                </div></div>
                <div class="card-view"><div class="col-sm-12">手机号：
                    <span th:text="*{masterPhoneNumber}"></span>
                </div></div>
                <div class="card-view"><div class="col-sm-12">身份证号：
                    <span th:text="*{masterIdentityCardNumber}"></span>
                </div></div>
                <div class="card-view"><div class="col-sm-12">取暖方式：
                    <span th:text="*{keepwarmTypeValue}"></span>
                </div></div>
                <div class="card-view"><div class="col-sm-12">取暖面积：
                    <span th:text="*{areaValue}"></span>
                </div></div>
                <div class="card-view"><div class="col-sm-12">
                    是否配有型煤专用炉具：
                    <span th:text="*{stove == 1 ? '是' : '否'}"></span>
                </div></div>
                <div class="card-view"><div class="col-sm-12">
                    是否安装一氧化碳报警器：
                    <span th:text="*{alarm == 1 ? '是' : '否'}"></span>
                </div></div>
                <div class="card-view"><div class="col-sm-12">
                    是否发放明白纸：
                    <span th:text="*{note == 1 ? '是' : '否'}"></span>
                </div></div>
                <div class="card-view"><div class="col-sm-12">
                    是否进行广播宣传：
                    <span th:text="*{media == 1 ? '是' : '否'}"></span>
                </div></div>
                <div class="card-view"><div class="col-sm-12">
                    网格员：
                    <span th:text="*{gridMemeber?.name}"></span>
                </div></div>
                <div class="card-view"><div class="col-sm-12">
                    包联人：
                    <span th:text="*{baolianren?.name}"></span>
                </div></div>
                <div class="card-view"><div class="col-sm-12">
                    包联人电话：
                    <span th:text="*{baolianren?.phone}"></span>
                </div>
                </div>
            </div>
            <div class="hr-line-dashed"></div>
            <h4>购煤记录</h4>
            <div th:each="order : ${orders}">
                <div class="row card-view">
                    <div class="col-xs-6">
                        购煤时间：<span th:text="${#dates.format(order.createTime, 'yyyy-MM-dd')}"></span>
                    </div>
                    <div class="col-xs-6">
                        购煤数量：<span th:text="${order.amount}+'吨'"></span>
                    </div>
                </div>
                <div class="row card-view">
                    <div class="col-xs-6">
                        购煤款：<span th:text="${order.money}+'元'"></span>
                    </div>
                    <div class="col-xs-6">
                        收煤时间：<span th:if="${order.takeinTime != null && order.status==2}" th:text="${#dates.format(order.takeinTime, 'yyyy-MM-dd')}"></span>
                    </div>
                </div>
                <hr>
            </div>
        </div>
</div>
<th:block th:include="include_mobile :: footer" />
</body>